package cn.kmsoft.stgeometry.constant;


/**
 * 几何类型的枚举，这里列举了esri类型，geojson类型，wkt类型
 *
 * @author
 */
public enum GeometryType {
    //	esri几何图形


    esriGeometry(ShapeType.Geometry, GeometryFormat.ESRI),
    esriGeometryEnvelope(ShapeType.Exent, GeometryFormat.ESRIExtent),
    //	 geojson几何图形
    geoJsonGeometry(ShapeType.Geometry, GeometryFormat.GEOJSON),
    //	 wkt几何图形
    wktGeometry(ShapeType.Geometry, GeometryFormat.WKT),
    //捷泰自己的简化envelope格式
    esriSimpleEnvelope(ShapeType.Exent, GeometryFormat.GISUNI),

    // 图形
    shapeCircle(ShapeType.Circle, GeometryFormat.Circle);

    private ShapeType shapeType = ShapeType.Point;
    private GeometryFormat formatType = GeometryFormat.ESRI;

    GeometryType(ShapeType shapeType, GeometryFormat formatType) {
        this.setShapeType(shapeType);
        this.setFormatType(formatType);
    }

    public ShapeType getShapeType() {
        return shapeType;
    }

    public void setShapeType(ShapeType shapeType) {
        this.shapeType = shapeType;
    }

    public GeometryFormat getFormatType() {
        return formatType;
    }

    public void setFormatType(GeometryFormat formatType) {
        this.formatType = formatType;
    }
}
